﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;

namespace BUS
{
    public class TacGiaBUS
    {
        #region 1. Them
        public static bool ThemTacGia(TacGiaDTO tacgia){
            return TacGiaDAO.ThemTacGia(tacgia);
        }
        #endregion
        #region 2. Sua
        public static bool SuaTacGia(TacGiaDTO tacgia)
        {
            return TacGiaDAO.SuaTacGia(tacgia);
        }
        #endregion
        #region 3. Xoa
        public static bool XoaTacGia(int matg)
        {
            return TacGiaDAO.XoaTacGia(matg);
        }
        #endregion
        #region 4. Tim kiem
        public static TacGiaDTO TimTacGia(int matg){
            return TacGiaDAO.TimTacGia(matg);
        }
        public static DataTable TimTatCaTacGia()
        {
            return TacGiaDAO.TimTatCaTacGia();
        }
        #endregion
    }
}
